package com.mall.huohuo.datasource.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "tbl_distributed_id_setting")
public class TblDistributedIdSetting {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField(value = "max_id")
    private Integer maxId;

    @TableField(value = "step")
    private Integer step;

    @TableField(value = "module")
    private String module;

    @TableField(value = "description")
    private String description;

    @TableField(value = "create_time")
    private LocalDateTime createTime;

    @TableField(value = "update_time")
    private LocalDateTime updateTime;

    public static final String COL_ID = "id";

    public static final String COL_MAX_ID = "max_id";

    public static final String COL_STEP = "step";

    public static final String COL_MODULE = "module";

    public static final String COL_DESCRIPTION = "description";

    public static final String COL_CREATE_TIME = "create_time";

    public static final String COL_UPDATE_TIME = "update_time";
}
